import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/maintenance_logs_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/maintenance_logs_entity.g.dart';

@JsonSerializable()
class MaintenanceLogsEntity {
	late int id = 0;
	late String maintenanceRecords = '';
	late String operators = '';
	late String recordPersonnel = '';
	late String operationTime = '';
	late bool allowOperations = false;

	MaintenanceLogsEntity();

	factory MaintenanceLogsEntity.fromJson(Map<String, dynamic> json) => $MaintenanceLogsEntityFromJson(json);

	Map<String, dynamic> toJson() => $MaintenanceLogsEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}